package it.thalaz.thalaadm.action.command;


import it.thalaz.business.BusinessDelegate;
import it.thalaz.common.exception.GenericException;
import it.thalaz.common.framework.action.IThalaCommand;
import it.thalaz.common.framework.action.ThalaBaseCommand;
import it.thalaz.dataaccess.dto.Utenti;
import it.thalaz.dataaccess.dto.UtentiDecorator;

import java.util.ArrayList;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class UtentiBaseCommand extends ThalaBaseCommand implements IThalaCommand {
	private static final Log LOG = LogFactory.getLog(UtentiBaseCommand.class);
	protected static BusinessDelegate bDelegate = BusinessDelegate.getInstance();

	protected UtentiDecorator utenti = new UtentiDecorator();
	
	public UtentiBaseCommand(UtentiDecorator utenti) {
		this.utenti = utenti;
	}

	protected String check(Utenti form) {
		String errorMsg = ERR_NOERROR;

		return errorMsg;
	}

	public String execute() throws Exception {
		Utenti form = null;
		
		return start(utenti);
	}

	protected String start(UtentiDecorator utente) throws GenericException {

		Map parameters = null;
		parameters.put("cmd", utenti.getCmd());
		return "success";

	}    
}
